package com.dyw.spzx.manager.service.lmpl;

import com.dyw.spzx.manager.mapper.SysUserRoleMapper;
import com.dyw.spzx.manager.service.SysUserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysUserRoleServiceImpl implements SysUserRoleService {

    @Autowired
    private SysUserRoleMapper sysUserRoleMapper;


    // 查询当前用户的角色数据
    @Override
    public List<Long> findUserRoleByUserId(Long userId) {
        List<Long> sysRoleIds  = sysUserRoleMapper.findUserRoleByUserId(userId);
        return sysRoleIds;
    }
}
